home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1996 July / C-C++ Users Group Library July 1996.iso / vol_400 / 419_01 / odmg10 / util / scripts / x11mf.cpp < prev    next >
Encoding:
Text File  |  1993-09-09  |  380 b   |  29 lines

  1. /**/#!/bin/sh
  2.  
  3. /**/# 
  4. /**/# generate a Makefile within the build tree
  5. /**/# 
  6. /**/# usage:  x11mf [treedir]
  7. /**/# 
  8.  
  9. if [ x$1 != x ]; then
  10.     tree=$1
  11. else
  12.     tree=/x11
  13. fi
  14.  
  15. dir=`pwd`
  16. top=`(cd $tree; /bin/pwd)`
  17. intree=no
  18.  
  19. case $dir in
  20.     $top*)    intree=yes;;
  21. esac
  22.  
  23. if [ $intree != yes ]; then
  24.     echo "$0:  Must be underneath $tree"
  25.     exit 1
  26. fi
  27.  
  28. (cd ..; make SUBDIRS=`basename $dir` Makefiles)
  29.